package com.rightsidetech.system.dtos.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author yhr
 * @version 1.0
 * @Title:
 * @Package
 * @Description: 修改用户状态
 * @date 2021/10/20
 */
@ApiModel(value = "修改用户状态")
@Data
public class SysUserUpdateStatusReq implements Serializable {
    @ApiModelProperty("帐号id")
    @NotNull(message = "帐号id不能为空")
    @Min(value = 0, message = "帐号id不正确")
    private Long loginInfoId;
    @ApiModelProperty("0 正常 -1禁用")
    @Range(min = -1, max = 0,message = "状态不正确")
    private Byte status;
}
